<template>
  <!--  <avue-form v-model="formModel" :option="formOption" @submit="submit">-->

  <!--  </avue-form>-->
  <avue-wang-editor v-model="formModel.field_18517da"></avue-wang-editor>

</template>
<script>
import formOption from "@/page/test/avueForm/formOption";
import AvueMonacoEdit from "components/avue-extension/avue-monaco-edit/index.vue";
import AvueWangEditor from "components/avue-extension/avue-wang-editor/index.vue";

export default {
  name: "pageAvueForm",
  components: {AvueWangEditor, AvueMonacoEdit},
  computed: {
    formOption() {
      return formOption
    }
  },
  data() {
    return {
      text: "dadfasdf",
      formModel: {
        monacoEdit: "{}",
        field_18517da: ''
      }
    }
  },
  created() {
    setTimeout(() => {
      this.formModel.field_18517da = "<p>dfsdfasdf</p>"
      console.log("数据变化")
    }, 3000)
  },
  methods: {
    submit(model) {
      console.log("model", model)
    }
  }
}
</script>
<style scoped>

</style>